import * as request from './request'

export async function getAllHotSearches() {
  try {
    const data = await request.post('', '/api/web/hotSearch/get')
    return data
  } catch (e) {
    return (e)
  }
}

export async function addHotSearches(body: { content: string }) {
  try {
    const data = await request.post(JSON.stringify(body), '/api/web/hotSearch/add')
    return data
  } catch (e) {
    return (e)
  }
}